package mvp.com.mvpdemo.view;

import mvp.com.mvpdemo.model.bean.User;

/**
 * Created by YoungerChen on 2016/9/13.
 */
public interface IUserLoginView {

    String getUsername();

    String getPassword();

    void clearUsername();

    void clearPassword();

    void showLoading();

    void hideLoading();

    void toMainActivity();

    void showFailedError();

    interface OnLoginListener{
        void loginSuccess(User user);
        void loginFailed();
    }
}
